package com.tuanzi.loan.business.repository.system.custom;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.tuanzi.loan.business.entity.system.SystemUser;
import com.tuanzi.loan.vo.request.system.SystemUserSearchRequest;
import com.tuanzi.loan.vo.response.system.SystemUserSearchResponse;

/**
 * @author Ray 2017/09/21
 */

public interface SystemUserRepositoryCustom {

	Page<SystemUserSearchResponse> list(SystemUserSearchRequest searchRequest, Pageable pageable);

	List<SystemUser> findAllByRoleCode(String roleId);

	Integer updateLastLoginTimeAndResetRetryTimes(String account);
}
